﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Net;
using System.Net.Sockets;
using System.Threading;

namespace Soket_MMTNC_Client
{
    /// <summary>
    /// Interaction logic for login.xaml
    /// </summary>
    public partial class login : Window
    {
        public login()
        {
            InitializeComponent();
        }
        Ipserver myip = new Ipserver();
        private void btDongY_Click(object sender, RoutedEventArgs e)
        {
            if (txt_username.Text.Trim() == "" || pwb_password.Password.Trim() == "")
            {
                lb_username.Visibility = Visibility.Visible;
                lb_password.Visibility = Visibility.Visible;
            }
            else
            {
                this.Hide();
                MainWindow.me.u_p = txt_username.Text + " " + pwb_password.Password;                
                MainWindow.me.Run();                
            }
        }

        private void btThoat_Click(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown();
        }
    }
}
